<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');

class Formacao_academica extends CI_Controller {

public function index()
    {
//    $this->load->view('formacao_academica_v');

    $this->form_validation->set_rules('nivel','NÍVEL DE FORMACÃO','required|alpha|max_lenght[254]|trim|ucwords');
    $this->form_validation->set_rules('instituicao','INSTITUIÇÃO','required|max_lenght[254]|trim');
    $this->form_validation->set_rules('curso','CURSO','required|max_lenght[254]|trim');
    $this->form_validation->set_rules('ano_conclusao','ANO DE CONCLUSÃO','required');
        
    if($this->form_validation->run()==TRUE){
        echo 'validacao ok';
    }
    
        $dados = array(
                //carrega views
                'header' => 'header.php',
                'divheader' => 'divheader.php',
                'divtopmenu' => 'divtopmenu.php',
                'divcontent' => 'meu_curriculo_v/formacao_academica_v.php',
                'divleftmenu' => 'divleftmenu.php',
                'divfooter' => 'divfooter.php',
                'perfil' => retornaperfil($this->session->userdata('user_role')),
                'menu_item' => criamenu($this->session->userdata('id'),$this->session->userdata('user_role')),
            );
        $this->load->view('main', $dados);
       
    }
    
//    public function exibe_curriculo($id_user) {
//        $dados = array(
//            
//        );
        
//    }    
    
}

/* End of file main.php */
/* Location: ./application/controllers/main.php */